PHP Cryptographic function-sha1 () function Encryption
First of all, let's introduce what is SHA1?
SHA is the full name: Secure Hash Algorithm (secure hashing algorithm) is mainly applied to digital signature (digital Signature standard DSS) in the
OBJECTIVE-C implementation of MD5 and SHA1 algorithm is relatively simple, you can directly call the system's C/s + + shared library to implement the callMD5 is the message Digest algorithm 5 (Information-Digest algorithm 5), which is used to ensure
Ask, I if this transcoding, is not security will be a little higher.
For example: SHA1 (MD5 ("password"))
What I want to know is:
1 is that necessary?
2 If this is possible, the impact on performance will be very large
or other what I can not think
usually, the encryption algorithm used is simple and efficient, the key is short, the encryption and decryption speed is fast, the decoding is extremely difficult. This article describes the use of Md5/sha1,dsa,desede/des,diffie-hellman.
The
【ProgramIntroduction]Free Open-source file MD5 sha1 sha256 sha512 Verification Code Generation Tool v1.3
This is an interesting program. The same program is a graphical program and a command line program.Program role:Enter the path of a file and
Copyright statement: original works can be reproduced. During reprinting, be sure to mark them as hyperlinks.ArticleOriginal publication, author information, and this statement. Otherwise, legal liability will be held.
From: Http://hi.baidu.com/zhy65991/blog/item/0a663172b039321a8601b0e4.html Usually, the encryption algorithm used is relatively simple and efficient, the key is short, encryption and decryption speed, deciphering extremely difficult. This paper
1. MD5:
MD5 is the Message-digest algorithm 5 (Information-Digest algorithm 5), which is used to ensure complete consistency of information transmission. is one of the most widely used hashing algorithms (also translated digest algorithm, hashing
Source author Wang HuiChapter 4 Basic Knowledge
1.1. Single-key password systemThe single-key cryptography system is a traditional encryption algorithm, which means that the sender and receiver of the information use the same key for encryption and
Using system; namespace mymethod {class computemd5andsha1 {// // calculate the MD5 value of the file /// /// to calculate MD5 value File Name and path // MD5 value hexadecimal string Public String md5file (string filename) {return hashfile
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.